package com.yonghui.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: HelloController
 * @author: zhangtong
 * @create: 2021-03-23 16:56
 **/
@RestController
@RequestMapping(value = "/hello")
public class HelloController {

    @GetMapping(value = "/world")
    public Object world(String name){
        String result = "hello world, " + name;
        System.out.println(result);
        return result;
    }

}
